GraphConverter

open class GraphConverter(graphProcessor: AbstractGraphProcessor, gson: Gson) : Converter.Factory

Body for GraphQL requests and responses, closed for modification but open for extension.

Parameters

graphProcessor

A singleton reference of AbstractLogger

gson

Any valid application context

Constructors

Link copied to clipboard
constructor(graphProcessor: AbstractGraphProcessor, gson: Gson)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun requestBodyConverter(type: Type, parameterAnnotations: Array<out Annotation>, methodAnnotations: Array<out Annotation>, retrofit: Retrofit): Converter<*, RequestBody>?

Response body converter delegates logic processing to a child class that handles wrapping and deserialization of the json response data.

Link copied to clipboard
open override fun responseBodyConverter(type: Type, annotations: Array<out Annotation>, retrofit: Retrofit): Converter<ResponseBody, *>?

Response body converter delegates logic processing to a child class that handles wrapping and deserialization of the json response data.

Link copied to clipboard
fun setLogLevel(logLevel: LogLevel)

Sets the minimum level for log messages. Attempted messages with a too low log level are skipped and not printed to the system log.

Link copied to clipboard

Overrides the minimum level for log messages on the logger.

Link copied to clipboard
open fun stringConverter(p0: Type, p1: Array<Annotation>, p2: Retrofit): Converter<*, String>?